package token

type TokenType string

type Token struct {
	Type    TokenType
	Literal string
}

const (
	// ILLEGAL EOF 未知的词元或字符
	ILLEGAL = "ILLEGAL"
	EOF     = "EOF"
	// IDENT INT 标识符和字面量
	IDENT = "IDENT" // foo add x y
	INT   = "INT"   // 123456
	// ASSIGN PLUS 运算符
	ASSIGN = "="
	PLUS   = "+"
	// COMMA SEMICOLON 分隔符
	COMMA     = ","
	SEMICOLON = ";"

	LPAREN = "("
	RPAREN = ")"
	LBRACE = "{"
	RBRACE = "}"

	// FUNCTION LET 关键字
	FUNCTION = "FUNCTION"
	LET      = "LET"
)
